<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      [v-cloak] {
        display: none;
      }
    </style>
  </head>
  <body>
    <!-- v-cloak:实例化没有完成前显示在标签上，实例化完成消失  -->
    <div id="app" v-cloak>
      {{msg}}
    </div>
    <script src="./vue.js"></script>
    <script>
      setTimeout(() => {
        new Vue({
          el: '#app',
          data: {
            msg: 'hello'
          }
        })
      }, 3000)
    </script>
  </body>
</html>
